package jiankao;

import java.util.List;
import java.util.Map;

public class KaoChang {

    private List<Map<String,Object>> datas;
    private String name;
    private String address;
    private int colNumber;
    private int rowNumber;

    public List<Map<String, Object>> getDatas() {
        return datas;
    }

    public String getName() {
        return name;
    }

    public String getAddress() {
        return address;
    }

    public int getColNumber() {
        return colNumber;
    }

    public int getrowNumber() {
        return rowNumber;
    }

    public void setDatas(List<Map<String, Object>> datas) {
        this.datas = datas;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setColNumber(int colNumber) {
        this.colNumber = colNumber;
    }

    public void setrowNumber(int rowNumber) {
        this.rowNumber = rowNumber;
    }

    public KaoChang(String name,String address,int studentsNumber){
        this.name=name;
        this.address=address;
        this.colNumber=6;
        this.rowNumber=studentsNumber/colNumber;
    }

    public KaoChang(String name,int colNumber,int rowNumber,String address){
        this.name=name;
        this.address=address;
        this.colNumber=colNumber;
        this.rowNumber=rowNumber;
    }

    public KaoChang(){

    }
}
